package com.aixin.project.conf;
import java.util.Properties;
/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 12-4-14
 * Time: 下午2:33
 * To change this template use File | Settings | File Templates.
 */
public class AXProperty {
    private static final String AX_PROPERTY_NAME = "ax.properties";

   	public static String getProperty(String key) {
   		Properties props = AXPropertyManager.getProperties(AX_PROPERTY_NAME);
   		if (props == null) {
   			props = PropertyLoader.loadProperties(AX_PROPERTY_NAME);
               AXPropertyManager.putProperties(AX_PROPERTY_NAME,props);
   		}
   		return props.getProperty(key);
   	}
}


